package god.dream.user.dao;

import god.dream.user.model.User;
import java.util.List;
import org.springframework.dao.DataAccessException;

public interface UserDAO {

	int insert(User user) throws DataAccessException;

	int update(User user) throws DataAccessException;

	int delete(int id) throws DataAccessException;

	User findUser(int id) throws DataAccessException;

	User findUserWithName(String name) throws DataAccessException;

	List<User> findUserList() throws DataAccessException;

}
